package com.workManager.service;

import com.github.pagehelper.PageInfo;
import com.workManager.pojo.TdUser;
import com.workManager.vo.UserVo;

import java.util.List;
import java.util.Map;

/**
 * Created by Thinkpad on 2017/1/12 0012.
 */
public interface  UserService {

    public void register(TdUser tdUser);
    public void login(TdUser tdUser);
    public void loginOut();
    public List<TdUser> queryUser();
    public TdUser queryUserByLoginCode(String loginCode);
    public TdUser queryUserByName(String name);
    public void passwordModify(String loginCode,String passWord);
    public PageInfo<TdUser> queryByOraganizationId(Map<String ,Object> map);
    public Map<String,Object> query(Map<String,Object> map) throws Exception;
    public int add(UserVo userVo)throws Exception;
    public int update(UserVo userVo) throws Exception;
    public int updateUserInfo(Map<String ,Object> map) throws Exception;
    public Map<String,Object> delete(Integer[] userIds);
    public void updateLoginTimeByLogCode(Map<String,Object> map);



}
